<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>支部风采</title>
    <link rel="stylesheet" href="../../addons/party_member/public/css/weui.min.css">
    <link rel="stylesheet" href="../../addons/party_member/public/css/jquery-weui.min.css">

    <!-- body 最后 -->
    <script src="../../addons/party_member/public/js/jquery.min.js"></script>
    <script src="../../addons/party_member/public/js/jquery-weui.min.js"></script>

    <!-- 如果使用了某些拓展插件还需要额外的JS -->
    <script src="../../addons/party_member/public/js/swiper.min.js"></script>
    <script src="../../addons/party_member/public/js/city-picker.min.js"></script>
    <script src="../../addons/party_member/public/js/function.js"></script>
    <style>
        body{
            margin: 0;
            padding: 0;

        }
        .box{
            position: relative;
            width: 100%;
            overflow: hidden;
            background: url("../addons/party_member/public/image/branchStyle/newbg.png") ;
            background-repeat: repeat-y;
            background-size: 100% auto;
        }
        .head{
            display: block;
            position: relative;
            width: 100%;
            height: 43px;
            background: #ffffff;
            text-align: center;
            font-size: 18px;
            line-height: 43px;
            font-family: -webkit-body;
            color: #333333;

        }
        .head_return{
            display: inline-block;
            position: absolute;
            left: 10px;
            top: 10px;
            width: 20px;
            height: 23px;
            background: url("../addons/party_member/public/image/evaluation/return.png") no-repeat;
            background-size: 12px 23px;

        }



        .banner_info span{
            display: block;
            margin: auto;
            color: #ffffff;
        }

        .table_main{
            display: block;
            margin-top: 10px;
            width: 100%;
            height: auto;
        }

        .table_head span{
            display: inline-block;
            position: absolute;
            left: 0;
            height: 20px;
            border-left: 5px solid red;
            padding-left: 10px;
            color: #a7a7a7;
        }




        .star_pic span{
            display: inline-block;
            margin: auto;
            width: 20px;
            height: 20px;
            background: url(../addons/party_member/public/image/evaluation/star.png) no-repeat;
            background-size: 20px 20px;
        }

        .more_info span{
            display: inline-block;
            width: 13px;
            height: 9px;
            background: url(../addons/party_member/public/image/evaluation/more_btn.png) no-repeat;
            background-size: 13px 9px;
        }



        .main:before{
            content: " ";
            position: absolute;
            width: 4px;
            border-top: 40px solid red;
            -webkit-transform-origin: 0 0;
            transform-origin: 0 0;
            -webkit-transform: scaleY(.5);
            transform: scaleY(.5);
            left: 0px;
            top: 13px;

        }
        .main{
            position: relative;
            padding:10px 15px;
            color: #888888;
        }
        .footer:after{
            content: " ";
            display: inline-block;
            -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
            height: 13px;
            width: 13px;
            border-width: 0px 2px 2px 0;
            border-color: #c8c8cd;
            border-style: solid;
            margin-left: 48%;
        }
    </style>
</head>
<body>

<div class="box" >
    <div class="head">
        <span class="head_return"></span>
        支部风采
    </div>
    {loop $data['list'] $index $item}
    <div style="margin-left: 15px;margin-top: 10px;width: 96%;vertical-align: middle">
        <span  style=" text-align: left; vertical-align: middle;line-height: 30px;display: inline-block;font-size: 21px;">
            <i style="display: inline-block;width: 20px;height: 20px;
        background: url(../addons/party_member/public/image/branchStyle/iconTY.png) no-repeat;background-size: 20px 20px;vertical-align: middle"></i>{$item['partygroup']['partyname']}
        </span>


    </div>
    <div class="banner" style="text-align: center;padding: 10px">
        <img style="width: 60%; height: 60%; " src="{$item['partygroup']['photo']}">
    </div>
    <div class="table_main">

        <div class="main">
            {$item['partygroup']['partydesc']}
        </div>
        <div style="width: 100%;padding: 15px 15px 35px 15px;position: relative;">
            <div class="zbdj" data-id="{$item['partygroup']['partyid']}" style="position: absolute;left: 15px"><i style="margin-right:10px ;display:inline-block;width: 20px;height:20px;background: url(../addons/party_member/public/image/pattern/logogood.png) no-repeat;background-size: 20px 20px"></i>
                <span class="num">{$item['partygroup']['lovesum']}</span>
            </div>
            <div style="position: absolute;left: 100px"><i style="margin:0 10px 0 20px ;display:inline-block;width: 20px;height:20px;background: url(../addons/party_member/public/image/pattern/logopj.png)no-repeat;background-size: 20px 20px"></i>
                <span>{$item['partygroup']['messagesum']}</span>
            </div>
            <div style="position: absolute;right: 45px;"><i style="display:inline-block;width: 20px;height:20px;background: url(../addons/party_member/public/image/branchStyle/iconLY.png)no-repeat;background-size: 20px 20px"></i>
                <a href="{php echo $this->createMobileUrl('Discuss',array('type'=>1,'id'=>$item['partygroup']['partyid']))}"><span style="color:#01b1f5">写留言</span></a>
            </div>
        </div>

    </div>
    <div style="display:block;width: 100%">
        <div style="margin-top: 15px ;text-align: center">
            <span style="display: inline-block;width: 30px;height:15px;background: url(../addons/party_member/public/image/branchStyle/iconL.png) no-repeat;background-size: 30px 15px"></span>
            <span style="display: inline-block;">精选留言</span>
            <span style="display:inline-block;width: 30px;height:15px;background: url(../addons/party_member/public/image/branchStyle/iconL.png) no-repeat;background-size: 30px 15px"></span>
        </div>
        <div class="weui-tab__bd">
            <div  class="weui-tab__bd-item weui-tab__bd-item--active">
                <div class="weui-panel__bd">

                    {loop  $item['messagelist'] $index $item1}

                    <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-media-box__hd" style="margin-top: -25px">
                            <img class="weui-media-box__thumb" style="border-radius: 50%;width: 80%;height: 80%" width="60" height="60"
                                 src="{$item1['photo']}">
                        </div>
                        <div class="weui-media-box__bd">
                            <div class="weui-media-box__title" style="display: inline-block;width: 85%">
                                <p>{$item1['membername']}</p>
                                <p>{$item1['message']}</p>
                                <p style="color: #cccccc">{$item1['curtime']}</p>
                            </div>
                        </div>
                    </a>

                    {/loop}

                </div>
            </div>
        </div>
        <!--    <div  class="footer" style="color: #cccccc">
                <span style="display:block;width: 100%;text-align: center">点击展开更多</span>
            </div>-->
    </div>
    {/loop}
</div>

<script>
    $(function () {
        $(".zbdj").click(function () {
            var partyid = $(this).attr('data-id');

            var that = this;
            $.showLoading();
            $.post('{php echo $this->createMobileUrl("BranchLoveAjax")}',{
                id:partyid,
                type:1
            },function (data) {
                $.hideLoading();
                if(data['status']){
                    $(that).find(".num").text(data.result.lovesum);
                }else{
                    $.alert(data['result'], "提示");
                }
            },'json')

        })
    })
</script>
</body>
</html>

